package com.heima.mapper;

import com.heima.pojo.po.Region;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.dto.RegionDto;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 运营区域 Mapper 接口
 * </p>
 *
 * @author 存折
 * @since 2024-10-18
 */


public interface RegionMapper extends BaseMapper<Region> {

    @Select("select count(*) from tb_node where region_id=#{id}")
    Integer getCount(Long id);

    @Delete("delete from tb_region where id=#{regionId}")

    void deletes(String regionId);
}
